package day0220;

public class PrimeNumber {
    public static void main(String[] args) {

        boolean num=false;

        for (int i=2;i<=100;i++){
            num=true;
            for (int j=2;j<i;j++){
                if (i%j==0){
                    num=false;
                    break;
                }
            }
            if (num){
                System.out.println(i+"是素数");
            }
        }

    }
}
